<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::group(['prefix' => 'admin','namespace' => 'View\Admin'],function(){
	Route::get('login','LoginController@login');

	require_once('web/view/Hotel.php');


});

Route::group(['prefix' => 'api/admin','namespace' => 'Api\Admin'],function(){
	Route::post('login','LoginController@login');


});

Route::group(['prefix' => 'hotel','namespace' => 'View\Hotel'],function(){
	Route::get('login','LoginController@login');
});

Route::group(['prefix' => 'api/hotel','namespace' => 'Api\Hotel'],function(){
	Route::post('login','LoginController@login');

	require_once('web/api/hotel/room.php');
	require_once('web/api/hotel/hotelGuide.php');
	require_once('web/api/hotel/tourism.php');
	require_once('web/api/hotel/hotelInfo.php');
	require_once('web/api/hotel/clean.php');
	require_once('web/api/hotel/sundrie.php');
	require_once('web/api/hotel/welfare.php');
	require_once('web/api/hotel/complaint.php');
	require_once('web/api/hotel/storeLevel.php');
	require_once('web/api/hotel/storeGoods.php');
});


Route::group(['prefix' => 'api/font', 'namespace' => 'Api\Font'], function () {

    require_once('web/api/font/convenienceStore.php');
    require_once('web/api/font/roomMeals.php');
    require_once('web/api/font/hotelInfo.php');
});
